Optimal. Leaf size=331 \[ \frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {\tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}+1\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {\log \left (\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {\log \left (\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 d^{5/2} f}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f \left (a^2 \tan (e+f x)+a^2\right ) (d \tan (e+f x))^{3/2}}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.99, antiderivative size = 331, normalized size of antiderivative = 1.00, number of steps used = 20, number of rules used = 16, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.640, Rules used = {3569, 3649, 3653, 12, 16, 3476, 329, 297, 1162, 617, 204, 1165, 628, 3634, 63, 205} \[ \frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {\tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {\tan ^{-1}\left (\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}+1\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {\log \left (\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {\log \left (\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}+\sqrt {d}\right )}{4 \sqrt {2} a^2 d^{5/2} f}+\frac {1}{2 d f \left (a^2 \tan (e+f x)+a^2\right ) (d \tan (e+f x))^{3/2}}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 16
Rule 63
Rule 204
Rule 205
Rule 297
Rule 329
Rule 617
Rule 628
Rule 1162
Rule 1165
Rule 3476
Rule 3569
Rule 3634
Rule 3649
Rule 3653
Rubi steps
\begin {align*} \int \frac {1}{(d \tan (e+f x))^{5/2} (a+a \tan (e+f x))^2} \, dx &=\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int \frac {\frac {7 a^2 d}{2}-a^2 d \tan (e+f x)+\frac {5}{2} a^2 d \tan ^2(e+f x)}{(d \tan (e+f x))^{5/2} (a+a \tan (e+f x))} \, dx}{2 a^3 d}\\ &=-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}-\frac {\int \frac {\frac {27 a^3 d^3}{4}+\frac {3}{2} a^3 d^3 \tan (e+f x)+\frac {21}{4} a^3 d^3 \tan ^2(e+f x)}{(d \tan (e+f x))^{3/2} (a+a \tan (e+f x))} \, dx}{3 a^4 d^4}\\ &=-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {2 \int \frac {\frac {21 a^4 d^5}{8}+\frac {3}{4} a^4 d^5 \tan (e+f x)+\frac {27}{8} a^4 d^5 \tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{3 a^5 d^7}\\ &=-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int \frac {3 a^5 d^5 \tan (e+f x)}{2 \sqrt {d \tan (e+f x)}} \, dx}{3 a^7 d^7}+\frac {7 \int \frac {1+\tan ^2(e+f x)}{\sqrt {d \tan (e+f x)} (a+a \tan (e+f x))} \, dx}{4 a d^2}\\ &=-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int \frac {\tan (e+f x)}{\sqrt {d \tan (e+f x)}} \, dx}{2 a^2 d^2}+\frac {7 \operatorname {Subst}\left (\int \frac {1}{\sqrt {d x} (a+a x)} \, dx,x,\tan (e+f x)\right )}{4 a d^2 f}\\ &=-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\int \sqrt {d \tan (e+f x)} \, dx}{2 a^2 d^3}+\frac {7 \operatorname {Subst}\left (\int \frac {1}{a+\frac {a x^2}{d}} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a d^3 f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\operatorname {Subst}\left (\int \frac {\sqrt {x}}{d^2+x^2} \, dx,x,d \tan (e+f x)\right )}{2 a^2 d^2 f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\operatorname {Subst}\left (\int \frac {x^2}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{a^2 d^2 f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}-\frac {\operatorname {Subst}\left (\int \frac {d-x^2}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a^2 d^2 f}+\frac {\operatorname {Subst}\left (\int \frac {d+x^2}{d^2+x^4} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{2 a^2 d^2 f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\operatorname {Subst}\left (\int \frac {\sqrt {2} \sqrt {d}+2 x}{-d-\sqrt {2} \sqrt {d} x-x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}+\frac {\operatorname {Subst}\left (\int \frac {\sqrt {2} \sqrt {d}-2 x}{-d+\sqrt {2} \sqrt {d} x-x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}+\frac {\operatorname {Subst}\left (\int \frac {1}{d-\sqrt {2} \sqrt {d} x+x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 a^2 d^2 f}+\frac {\operatorname {Subst}\left (\int \frac {1}{d+\sqrt {2} \sqrt {d} x+x^2} \, dx,x,\sqrt {d \tan (e+f x)}\right )}{4 a^2 d^2 f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}+\frac {\log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {\log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}+\frac {\operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}-\frac {\operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}\\ &=\frac {7 \tan ^{-1}\left (\frac {\sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 a^2 d^{5/2} f}-\frac {\tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {\tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt {d \tan (e+f x)}}{\sqrt {d}}\right )}{2 \sqrt {2} a^2 d^{5/2} f}+\frac {\log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)-\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {\log \left (\sqrt {d}+\sqrt {d} \tan (e+f x)+\sqrt {2} \sqrt {d \tan (e+f x)}\right )}{4 \sqrt {2} a^2 d^{5/2} f}-\frac {7}{6 a^2 d f (d \tan (e+f x))^{3/2}}+\frac {9}{2 a^2 d^2 f \sqrt {d \tan (e+f x)}}+\frac {1}{2 d f (d \tan (e+f x))^{3/2} \left (a^2+a^2 \tan (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.97, size = 203, normalized size = 0.61 \[ \frac {\tan ^{\frac {5}{2}}(e+f x) \left (-\sqrt {2} \tan ^{-1}\left (1-\sqrt {2} \sqrt {\tan (e+f x)}\right )+\sqrt {2} \tan ^{-1}\left (\sqrt {2} \sqrt {\tan (e+f x)}+1\right )+14 \tan ^{-1}\left (\sqrt {\tan (e+f x)}\right )+\frac {\log \left (-\tan (e+f x)+\sqrt {2} \sqrt {\tan (e+f x)}-1\right )-\log \left (\tan (e+f x)+\sqrt {2} \sqrt {\tan (e+f x)}+1\right )}{\sqrt {2}}+\frac {2 \left (20 \cot (e+f x)-4 \csc ^2(e+f x)+31\right )}{3 \sqrt {\tan (e+f x)} (\cot (e+f x)+1)}\right )}{4 a^2 f (d \tan (e+f x))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.10, size = 2269, normalized size = 6.85 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 2.16, size = 309, normalized size = 0.93 \[ \frac {\sqrt {2} {\left | d \right |}^{\frac {3}{2}} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{4 \, a^{2} d^{4} f} + \frac {\sqrt {2} {\left | d \right |}^{\frac {3}{2}} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {{\left | d \right |}} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {{\left | d \right |}}}\right )}{4 \, a^{2} d^{4} f} - \frac {\sqrt {2} {\left | d \right |}^{\frac {3}{2}} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{8 \, a^{2} d^{4} f} + \frac {\sqrt {2} {\left | d \right |}^{\frac {3}{2}} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {{\left | d \right |}} + {\left | d \right |}\right )}{8 \, a^{2} d^{4} f} + \frac {7 \, \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{2 \, a^{2} d^{\frac {5}{2}} f} + \frac {\sqrt {d \tan \left (f x + e\right )}}{2 \, {\left (d \tan \left (f x + e\right ) + d\right )} a^{2} d^{2} f} + \frac {2 \, {\left (6 \, d \tan \left (f x + e\right ) - d\right )}}{3 \, \sqrt {d \tan \left (f x + e\right )} a^{2} d^{3} f \tan \left (f x + e\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.32, size = 276, normalized size = 0.83 \[ \frac {\sqrt {2}\, \ln \left (\frac {d \tan \left (f x +e \right )-\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}{d \tan \left (f x +e \right )+\left (d^{2}\right )^{\frac {1}{4}} \sqrt {d \tan \left (f x +e \right )}\, \sqrt {2}+\sqrt {d^{2}}}\right )}{8 f \,a^{2} d^{2} \left (d^{2}\right )^{\frac {1}{4}}}+\frac {\sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )}{4 f \,a^{2} d^{2} \left (d^{2}\right )^{\frac {1}{4}}}-\frac {\sqrt {2}\, \arctan \left (-\frac {\sqrt {2}\, \sqrt {d \tan \left (f x +e \right )}}{\left (d^{2}\right )^{\frac {1}{4}}}+1\right )}{4 f \,a^{2} d^{2} \left (d^{2}\right )^{\frac {1}{4}}}+\frac {\sqrt {d \tan \left (f x +e \right )}}{2 f \,a^{2} d^{2} \left (d \tan \left (f x +e \right )+d \right )}+\frac {7 \arctan \left (\frac {\sqrt {d \tan \left (f x +e \right )}}{\sqrt {d}}\right )}{2 a^{2} d^{\frac {5}{2}} f}-\frac {2}{3 a^{2} d f \left (d \tan \left (f x +e \right )\right )^{\frac {3}{2}}}+\frac {4}{a^{2} d^{2} f \sqrt {d \tan \left (f x +e \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 254, normalized size = 0.77 \[ \frac {\frac {4 \, {\left (27 \, d^{2} \tan \left (f x + e\right )^{2} + 20 \, d^{2} \tan \left (f x + e\right ) - 4 \, d^{2}\right )}}{\left (d \tan \left (f x + e\right )\right )^{\frac {5}{2}} a^{2} d + \left (d \tan \left (f x + e\right )\right )^{\frac {3}{2}} a^{2} d^{2}} + \frac {3 \, {\left (\frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} + 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} + \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \sqrt {d} - 2 \, \sqrt {d \tan \left (f x + e\right )}\right )}}{2 \, \sqrt {d}}\right )}{\sqrt {d}} - \frac {\sqrt {2} \log \left (d \tan \left (f x + e\right ) + \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}} + \frac {\sqrt {2} \log \left (d \tan \left (f x + e\right ) - \sqrt {2} \sqrt {d \tan \left (f x + e\right )} \sqrt {d} + d\right )}{\sqrt {d}}\right )}}{a^{2} d} + \frac {84 \, \arctan \left (\frac {\sqrt {d \tan \left (f x + e\right )}}{\sqrt {d}}\right )}{a^{2} d^{\frac {3}{2}}}}{24 \, d f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.98, size = 424, normalized size = 1.28 \[ \frac {\frac {9\,{\mathrm {tan}\left (e+f\,x\right )}^2}{2}+\frac {10\,\mathrm {tan}\left (e+f\,x\right )}{3}-\frac {2}{3}}{a^2\,f\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{5/2}+a^2\,d\,f\,{\left (d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{3/2}}+\frac {\mathrm {atan}\left (\frac {2048\,a^{10}\,d^{18}\,f^5\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {1}{a^8\,d^{10}\,f^4}\right )}^{1/4}}{2048\,a^8\,d^{16}\,f^4+100352\,a^{12}\,d^{21}\,f^6\,\sqrt {-\frac {1}{a^8\,d^{10}\,f^4}}}+\frac {100352\,a^{14}\,d^{23}\,f^7\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {1}{a^8\,d^{10}\,f^4}\right )}^{3/4}}{2048\,a^8\,d^{16}\,f^4+100352\,a^{12}\,d^{21}\,f^6\,\sqrt {-\frac {1}{a^8\,d^{10}\,f^4}}}\right )\,{\left (-\frac {1}{a^8\,d^{10}\,f^4}\right )}^{1/4}}{2}+\mathrm {atan}\left (\frac {a^{10}\,d^{18}\,f^5\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {1}{256\,a^8\,d^{10}\,f^4}\right )}^{1/4}\,8192{}\mathrm {i}}{2048\,a^8\,d^{16}\,f^4-1605632\,a^{12}\,d^{21}\,f^6\,\sqrt {-\frac {1}{256\,a^8\,d^{10}\,f^4}}}-\frac {a^{14}\,d^{23}\,f^7\,\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,{\left (-\frac {1}{256\,a^8\,d^{10}\,f^4}\right )}^{3/4}\,6422528{}\mathrm {i}}{2048\,a^8\,d^{16}\,f^4-1605632\,a^{12}\,d^{21}\,f^6\,\sqrt {-\frac {1}{256\,a^8\,d^{10}\,f^4}}}\right )\,{\left (-\frac {1}{256\,a^8\,d^{10}\,f^4}\right )}^{1/4}\,2{}\mathrm {i}+\frac {\mathrm {atan}\left (\frac {\sqrt {d\,\mathrm {tan}\left (e+f\,x\right )}\,\sqrt {-d^5}\,1{}\mathrm {i}}{d^3}\right )\,\sqrt {-d^5}\,7{}\mathrm {i}}{2\,a^2\,d^5\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {1}{\left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}} \tan ^{2}{\left (e + f x \right )} + 2 \left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}} \tan {\left (e + f x \right )} + \left (d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________